package ru.compscicenter.uno;

//import com.sun.deploy.uitoolkit.ui.ConsoleController;
import ru.compscicenter.uno.controller.ClientController;
import ru.compscicenter.uno.controller.ServerController;
import ru.compscicenter.uno.log.Logger;
import ru.compscicenter.uno.model.Model;
import ru.compscicenter.uno.model.Player;
import ru.compscicenter.uno.view.SwingViewer;
import ru.compscicenter.uno.view.View;

/**
 * Created by IntelliJ IDEA.
 * User: Павел
 * Date: 26.11.11
 * Time: 1:55
 * To change this template use File | Settings | File Templates.
 */
public class UITest {
	static View viewer=null;

	public static void main(String[] args) {
        new Logger(Logger.Mode.ACTION, Logger.DEFAULT_FILE);
        ServerController c = new ServerController(false, "laal");
		Player p1 = new Player("p1", 1);
		Player p2 = new Player("p2", 2);
		Player p3 = new Player("p3", 2);
		Player p4 = new Player("p4", 2);
		c.addPlayer(p1);
		c.addPlayer(p2);
	    c.addPlayer(p3);
	    c.addPlayer(p4);
		c.isReady = true;
        c.setMyPlayerId(0);
		c.startGame();
		viewer = new SwingViewer(c);
		viewer.run();

	}
}
